Methods and system for illuminant-compensation

ABSTRACT

The present invention relates to methods and systems for an illuminant compensation. In particular, these methods and systems include a method for operations on an image, for example, an image of a human face. In the described methods and systems, it is determined for each pixel in the image whether it is part of the face region. A surface fitting is then determined based on only the pixels that are determined to be part of the face region. Also, described are methods and systems for image normalization wherein the standard deviation and average for the gray levels of the pixels are determined and then used to normalize the image so that the gray level for each of the pixels falls between a particular range.

BACKGROUND OF THE INVENTION

[0001] This invention relates to illuminant-compensation mechanisms, and more specifically to methods and systems for an illuminant-compensation mechanism for operations on an image with a human face.

[0002] Image color (or image gray level) is very sensitive to variations in lighting, thus resulting in an image of an object appearing considerably different under different illuminations. Further, psychophysical experiments have shown that the human visual system has difficulty identifying images of the same face under considerably different illuminations (see, e.g., Y. Moses, S. Edelman, and S. Ullamn, “Generalization of Novel Images in Upright and Inverted Faces,” Perception, vol. 25, pp. 443-461, 1996). Likewise, computer vision systems have difficulty obtaining a high-level of classification accuracy if face samples in the training and testing sets have different lighting conditions.

[0003] Illuminant-compensation preprocessing systems have been used to reduce the differences resulting from illumination variations. Presently, most illumination-compensation algorithms use gray level values for the entire image or an oval region inside the image when correcting for lighting differences. However, problems can arise because current systems do not take effects of extreme lighting conditions on a person's hair or brow, background lighting conditions or heavy shadows into consideration during illuminant-compensation.

[0004] Accordingly, there is a need for improved methods and systems for illuminant compensation.

SUMMARY OF THE INVENTION

[0005] Methods and systems consistent with the invention, as embodied and broadly described herein, comprise a method for illuminant compensation of an image including a face region that includes the steps of determining a surface fitting based on the face region for the image, generating an illuminant corrected image using the surface fitting and the image, and normalizing the image.

[0006] In another embodiment, such methods and systems comprise a system for illuminant compensation of an image including a face region that includes a memory, and a processor, wherein, the memory stores a program that is operative with the processor to perform the steps of determining a surface fitting based on the face region for the image, generating an illuminant corrected image using the surface fitting and the image, and normalizing the image.

[0007] In yet another embodiment, such methods and systems comprise a computer readable medium storing a program for illuminant compensation of an image, including a face region that is operative with a processor to perform a method including the steps of determining a surface fitting based on the face region for the image, generating an illuminant corrected image using the surface fitting and the image, and normalizing the image.

[0008] In yet another embodiment, such methods and systems comprise a method for determining a surface fitting for an image that includes a plurality of pixels each having a color, wherein the image includes a face region, that includes the steps of determining for each pixel whether the pixel's color is within a predetermined set of colors, determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors, and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.

[0009] In yet another embodiment, such methods and systems comprise a method for image normalization of an image that includes a plurality of pixels, each having a gray level, that includes the steps of computing an average gray level for the plurality of pixels in the image, computing a standard deviation of the gray level for the plurality of pixels in the image, and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.

BRIEF DESCRIPTION OF THE DRAWINGS

[0010]FIG. 1 illustrates a flowchart for an illuminant-compensation method for operations on a human face, in accordance with methods and systems consistent with the invention;

[0011]FIGS. 2a-2 d illustrate several face images of exemplary persons, in accordance with methods and systems consistent with the invention;

[0012]FIGS. 3a-3 d illustrate the results of a surface fitting for a number of exemplary images including a face region, in accordance with methods and systems consistent with the invention;

[0013]FIGS. 4a-4 c illustrate an example of an exemplary image before and after illuminant compensation, in accordance with methods and systems consistent with the invention;

[0014]FIG. 5 illustrates an example of sample results of illuminant compensation, in accordance with methods and systems consistent with the invention;

[0015]FIG. 6 illustrates a set of images, in accordance with methods and systems consistent with the invention;

[0016]FIG. 7 provides an illustrative example of decision making, in accordance with methods and systems consistent with the invention; and

[0017]FIG. 8 illustrates a computer system, in accordance with methods and systems consistent with the invention; and

[0018]FIG. 9 provides an illustrative example of Linear Discriminant Analysis (LAD) derived bases, in accordance with methods and systems consistent with the invention.

DETAILED DESCRIPTION

[0019]FIG. 1 illustrates a top-level flowchart for an illuminant-compensation method for operations on a human face, in accordance with methods and systems consistent with the invention. This algorithm can be used as a preprocessing step or a generic module for operations in applications such as face detection systems, face tracking systems, face recognition systems, video surveillance systems, object-based video coding systems, human computer interaction systems, or other types of image processing systems. This program may be embodied in a program or firmware that a computer or other system may execute.

[0020] The first step in the process illustrated by FIG. 1 is obtaining the input image. (S110). This image may be obtained, for example, from a computer's hard drive or memory, a server over the network or from any other place storing the image. Further, the image may be received in the computer's memory in real-time when the image is form a device such as camera or video player connected to the computer directly or through a network. Next, the face region is determined (S120). As previously discussed, existing illuminant-compensation algorithms typically use gray level values for the entire image or an oval region inside the image. In a preferred embodiment, the face region is first located in the image. Pixels outside the face region are then ignored in computing the lighting variations. Thus, only lighting variations across the face are taken into consideration during illuminant compensation.

[0021] In determining the face region, the first step is preferably transforming each pixel from the RGB color space to the YC_(b)C_(r) color space. This may be accomplished using the following equations:

Y=0.299*R+0.587*G+0.114*B,

C _(b)=0.564*(B−Y),

C _(r)=0.713*(R−Y).

[0022] where Y represents the intensity, C_(b) and C_(r) represent the chrominance plane, G represents the Green level, B represents the Blue level, and R represents the Red level.

[0023] Next, each pixel is checked to see if its color is a skin color. If so, the skin-color pixel is treated as part of the face region. For each pixel, the following rules are preferably used to determine if the pixel is a skin color: ${{{if}\quad \left( {Y > 128} \right)\quad \theta_{1}} = {{- 2} + \frac{256 - Y}{16}}};$

${\theta_{2} = {20 - \frac{256 - Y}{16}}};$ θ₃ = 6; θ₄ = −8; ${{{if}\quad \left( {Y \leq 128} \right)\quad \theta_{1}} = 6};{\theta_{2} = 12};{\theta_{3} = {2 + \frac{Y}{32}}};$ $\theta_{4} = {{- 16} + {\frac{Y}{16}.}}$

[0024] The pixel is then treated as a skin-color pixel if each of the following inequalities are satisfied:

C _(r)≧−2(C _(b)+24); C _(r)≧−(C _(b)+17);

C _(r)≧−4(C _(b)+32); C _(r)≧2.5(C _(b)+θ₁);

C _(r)≧θ₃ ; C _(r)≧0.5(θ₄ −C _(b)); and ${C_{r} \leq \frac{220 - C_{b}}{6}};{{C_{r} \leq {\frac{4}{3}\left( {\theta_{2} - C_{b}} \right)}}:}$

[0025] For a further description of these rules, see C. Garcia and G. Tziritas, “Face Detection Using Quantized Skin Color Regions Merging and Wavelet Packet Analysis, “IEEE Trans. on multimedia, vol. 1, no. 3, pp. 264-277, Sept. 1999, which is hereby incorporated by reference.

[0026]FIGS. 2a-2 d illustrate several face images of a number of exemplary persons, in accordance with methods and systems consistent with the invention. The first row of FIG. 2 illustrates two face images under normal lighting conditions (FIGS. 2(a) and 2(b)) and two biased images under extreme lighting conditions (FIGS. 2(c) and 2(d)). The second row of FIG. 2 illustrates the corresponding face images where black pixels are used to represent the respective face regions.

[0027] Referring back to FIG. 1, the next step is preferably surface fitting (S130). A simple image processing approach that may be used in surface fitting is to fit a function that varies across the image in relation to the intensity values of the pixels. (see e.g., K. K. Sung, “Learning and Example selection for Object and Pattern Detection,” Ph.D. Thesis, MIT Al Lab, January 1996, which is hereby incorporated by reference.) For example, the gray level of a pixel at coordinate (x,y) may be represented by G(x,y). Then, a linear model parameterized by a, b, and c, may be fit to the image: ${\left\lbrack {x\quad {y1}} \right\rbrack \cdot \begin{bmatrix} a \\ b \\ c \end{bmatrix}} = {G\left( {x,y} \right)}$

[0028] If all the pixels in the image are used, these equations may produce an over-constrained matrix. Preferably, this matrix system is solved using the pseudo-inverse method: ${A \cdot \begin{bmatrix} a \\ b \\ c \end{bmatrix}} = {{G\begin{bmatrix} a \\ b \\ c \end{bmatrix}} = {A^{- 1}G}}$

[0029] By using a linear model to represent brightness differences across the image, the variations are limited to a linear variation. Thus, using a linear model helps to keep the number of parameters low and allows for a quick fit. This model can therefore be generalized to (ax+by +c)^(n)=G(x,y) or even F(x,y)=G(x,y) to fit the original image, where n is the degree of surface function and F(x,y) is the general-type surface function. To avoid possible extensive computations that may be involved in solving an over-constrained matrix problem, a discrete least-squares approximation may be used. The discrete least squares approximation is a numerical method to approximate the solution of matrix systems and may reduce the computational time when compared with the pseudo-inverse method if the degree of surface function is large. For a further description of discrete least-squares approximation, see R. L. Burden and J. D. Faires, Numerical Analysis, PWS-KENT, Boston 1989, which is hereby incorporated by reference.

[0030]FIG. 3 illustrates the results of surface fitting for n=2 for the face regions illustrated in the second row of FIG. 2, in accordance with methods and systems consistent with the invention. The first row of FIG. 3 illustrates the original image as shown in FIG. 2. The second row illustrates the corresponding surface fitting. As illustrated, the surface fitting approximates the overall brightness of each part of the face region and may be used to reduce the effects from hair, brow, background and/or heavy shadows caused by extreme lighting condition.

[0031] Referring back to FIG. 1, the next step is illluminant correction (S140). This step comprises subtracting the determined surface fitting from the image in order to compensate for lighting variations:

G(x,y)−(ax+by+c)^(n) or

G(x,y)−F(x,y)

[0032]FIG. 4 illustrates an example of an image before and after illuminant compensation, in accordance with methods and systems consistent with the invention. As shown, FIG. 4(a) illustrates an image with the light source in the upper-left corner of the image. The first row of FIG. 4(b) illustrates a surface fitting for the image of FIG. 4(a) that is based in the whole image, while the first row of FIG. 4(c) illustrates a surface fitting based on only the face region. The second row in FIG. 4(b) and 4(c) illustrate the results of illuminant correction using the surface fitting of the corresponding first row. As shown, the face illustrated in FIG. 4(b) is less biased by hair, brow, and background lighting variations than the face illustrated in FIG. 4(a).

[0033] Referring back to FIG. 1, the next step is preferably image normalization (S150). This step is used to remove noise and provide a more constant illumination across the image. This step is preferably accomplished by first computing the average gray level, m, and the standard deviation, d, for the skin-color pixels in the face region, where S is the total number of skin-color pixels and G(i) is the gray level of pixel i: $m = {\frac{1}{S_{i \in}}{\sum\limits_{{skin}\text{-}{color}\quad {pixels}}{G(i)}}}$ $d = {\sqrt{\frac{1}{S_{i \in}}}{\sum\limits_{{skin}\text{-}{color}\quad {pixels}}\left( {{G(i)} - m} \right)^{2}}}$

[0034] Next, each image's gray level, G(i), is transformed by the following equation, where β is a scale factor for converting each of the transformed gray levels to a level between 0 and 255: $G^{\prime} = {128 + {\frac{\left( {{G(i)} - m} \right)}{d}*\beta}}$

[0035] G=128+(G(i)- m) d

[0036] After normalization, the transformed gray levels will have an average gray level close to 128.

[0037]FIG. 5 illustrates an example of sample results of illuminant compensated images determined using the above-described method, in accordance with methods and systems consistent with the invention. The first row of FIG. 5 illustrates six different original images of the same exemplary person taken with different lighting conditions. The second row illustrates surface fittings determined for the face region of the original images. The third row illustrates the result after illuminant correction. The fourth row illustrates the result after image normalization. As illustrated, the transformed images have more similar gray-level distributions than the original images. As such, the transformed images may then be used for decision making, such as, for example, by a face classifier to determine a person's distinctive characteristics.

[0038] Referring back to FIG. 1, the next step is decision making (S160). During this step, the illuminant compensated image is processed by a particular application. As discussed above, the illuminant compensated image may be used for various applications, such as face detection, face tracking, face recognition, video surveillance, object-based video coding, human computer interaction and other types of image processing in applications. A database may optionally be used to store information that is retrieved during decision making.

[0039] For example, if the particular application is face recognition, the database may store information regarding various persons' faces. As an example, FIG. 6 illustrates a set of exemplary images of faces 600 included in a database that may be used during decision making, in accordance with methods and systems consistent with the invention. This information may then be referred to during the decision making step to see if the face in the illuminant compensated image matches any of the faces in the database.

[0040]FIG. 7 provides an illustrative example of decision making, in accordance with methods and systems consistent with the invention. As illustrated, an image 702 processed according to the above described steps is input to this step. This image is then compared to each of the images in the set of images 600 to determine if there is a match (e.g., satisfies a set of criteria). The matching image and any associated information may then be provided to the user.

[0041] Referring back to FIG. 1, the next step is outputting the results of the decision making (S170). As will be obvious to one of skill in the art, this step could comprise displaying or printing the results of the decision making (e.g., face detection, face tracking, face recognition, and/or other types of image processing) such as, for example, displaying or printing a matching image from the database and/or additional information such as, for example, biographical information regarding the person in the matching image).

[0042]FIG. 8 illustrates a computer system 800, in accordance with methods and systems consistent with the invention. As illustrated, the computer may include a processor 810, a memory 820, a storage device 830, a bus 840, and a input/output (I/O) device 850. The storage device 830 may be a hard drive, a floppy disk drive, read/write or standard a Compact Disc (CD) drive, or any other type of storage device. The I/O device 650 may be a modem, a network card or any other type of I/O device.

[0043] The above-described methods may be accomplished by a computer program that is stored in the memory 820 or storage device 830 and executed by the processor 810. The image to be processed may be received at the computer through the I/O device 850 or may be stored on the storage device 830 or in memory 820.

[0044] After the image is processed it may be sent to another device via the I/O device 850 or stored on the storage device 830, or the processed image may remain in the memory 820.

[0045] As discussed above, after illuminant compensation the image may be processed by some other application such as, video surveillance, object-based video coding, human computer interaction, face detection, face tracking, face recognition or some other type of image processing. This image processing may be performed in the same computer as the illuminant compensation, or the illuminant-compensated image may be sent to another device for further image processing.

[0046] Further, as will be obvious to one in the art, the above described illuminant compensation method may be accomplished by other types of devices capable of running programs, or a device with specific hardware for performing the above described process.

[0047] The following provides an illustrative example of a face classifier system in which the above described illuminant compensation method was implemented. Referring back to FIG. 6, this figure illustrates an example set of 46 images in a database that was used during this experiment. Each of these images includes a face image that was manually extracted from a whole image. In general, an extracted face image is the rectangular portion of an image that contains a person's eyebrows, eyes, nose, and mouth.

[0048] In creating the database, each image was first normalized to a 25 pixel×25 pixel image in order to help reduce computational time. As will be obvious to one of skill in the art, different normalization parameters may be used. The normalized images were then applied to the above described illuminant compensation mechanism and accordingly an illuminant compensated image was generated for each image in the database.

[0049] The gray levels of these compensated images were then mapped to 20 Linear Discriminant Analysis (LDA) derived bases such as illustrated in FIG. 9. These bases were used to test the performance of the system, where the exact number of bases was a designer's choice based on the designer's experience. The feature dimension, which was extracted from the face region, was 20. A vector with 20 entries was chosen to be the feature where each entry is a real number obtained from the projection of the face region on the LDA bases.

[0050] A back propagation containing three-layer network architecture set to 20 (input)-80 (hidden)-46 (output), was then used to develop the face classifier. As will be obvious to one of skill in the art, back propagation is a commonly used neural network for learning in artificial intelligence. The network was then trained as follows. For each person in each of the 46 images in the database, there were 28 additional images of the particular person. The odd numbered images of each person were then processed to obtain 20 features that would be used as the input to the back propagation neural network. These features were obtained by mapping the images to 20 LDA-derived bases as discussed above. The 46 outputs from the neural network were then the features that were used for identifying the 46 persons in the database.

[0051] The trained network was then referred to as the face classifier. In testing, the even-numbered images of each person were used. The recognition rate of the face classifier was determined as follows, ${{recognition}\quad {rate}} = {\frac{S}{14 \times 46} = \frac{S}{644}}$

[0052] where S is the number of times the face classifier successfully identified the correct person.

[0053] In testing, the face classifier using the above described illuminant compensation mechanism had a recognition rate of 81.7%, while one not using the mechanism had a recognition rate of 75.4%.

[0054] Other embodiments of the invention will be apparent to those skilled in the art form consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims. 

What is claimed is:
 1. A method for illuminant compensation of an image including a face region comprising: determining a surface fitting based on the face region for the image; generating an illuminant corrected image using the surface fitting and the image; and normalizing the image.
 2. The method of claim 1, wherein the image includes a plurality of pixels, each having a color, and wherein the step of determining the surface fitting includes the substeps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors; and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 3. The method of claim 1, wherein the step of determining whether the pixel's color is within a predetermined set of colors includes determining if the pixel's color is a skin color.
 4. The method of claim 1, wherein the illuminant corrected image is generated by subtracting the surface fitting from the image.
 5. The method of claim 1, wherein the image includes a plurality of pixels each having a gray level, and wherein the step of normalizing the image, comprises the substeps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 6. The method of claim 5, wherein the step of normalizing the image further comprises the substeps of: determining for each of the plurality of pixels whether the pixel is part of the face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 7. The method of claim 6, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel is a color within a predetermined set of colors.
 8. A system for illuminant compensation of an image including a face region comprising: a memory; and a processor; wherein the memory stores a program that is operative with the processor to perform the following steps: determining a surface fitting based on the face region for the image; generating an illuminant corrected image using the surface fitting and the image; and normalizing the image.
 9. The system of claim 8, wherein the image includes a plurality of pixels, each having a color, and wherein the step of determining the surface fitting includes the substeps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that it is within the predetermined set of colors; determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 10. The system of claim 9, wherein the substeps of determining whether the pixel's color is within a predetermined set of colors includes determining if the pixel's color is a skin color.
 11. The system of claim 8, wherein in the step of generating the illuminant corrected image, the illuminant corrected image is generated by subtracting the surface fitting from the image.
 12. The system of claim 8, wherein the image includes a plurality of pixels each having a gray level, and wherein the step of normalizing the image, comprises the substeps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels toa gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 13. Th e system of claim 12, wherein the step of normalizing the image further comprises the substeps of: determining for each of the plurality of pixels whether the pixel is part of the face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 14. The system of claim 13, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel is a color within a predetermined set of colors.
 15. A computer readable medium storing a program for illuminant compensation of an image including a face region, wherein the program is operative with a processor to perform a method comprising the steps of determining a surface fitting based on the face region for the image; generating an illuminant corrected image using the surface fitting and the image; and normalizing the image.
 16. The computer readable medium of claim 15, wherein the image includes a plurality of pixels, each having a color, and wherein the step of determining the surface fitting includes the substeps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that the pixel's color is within a predetermined set of colors; and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 17. The computer readable medium of claim 16, wherein the substep of determining whether the pixel's color is within a predetermined range includes determining if the pixel's color is a skin color.
 18. The computer readable medium of claim 15, wherein in the step of generating the illuminant corrected image, the illuminant corrected image is generated by subtracting the surface fitting from the image.
 19. The computer readable medium of claim 15, wherein the image includes a plurality of pixels each having a gray level, and wherein the step of normalizing the image, comprises the substeps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 20. The computer readable medium of claim 19, wherein the step of normalizing the image further comprises the substeps of: determining for each of the plurality of pixels whether the pixel is part of the face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 21. The computer readable medium of claim 20, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel is a color within a predetermined set of colors.
 22. A system for illuminant compensation of an image including a face region comprising: means for determining a surface fitting based on the face region for the image; means for generating an illuminant corrected image using the surface fitting and the image; and means for normalizing the image.
 23. A method for determining a surface fitting for an image that includes a plurality of pixels each having a color, and wherein the image includes a face region, comprising the steps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors; and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 24. A system for determining a surface fitting for an image that includes a plurality of pixels each having a color, and wherein the image includes a face region, comprising: a memory; and a processor; wherein the memory stores a program that is operative with a processor to perform a method comprising the steps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors; and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 25. A computer readable medium storing a program that is operative with a processor to perform method for determining a surface fitting for an image that includes a plurality of pixels each having a color, and wherein the image includes a face region, comprising the steps of: determining for each pixel whether the pixel's color is within a predetermined set of colors; determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors; and determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 26. A system for determining a surface fitting for an image that includes a plurality of pixels each having a color, and wherein the image includes a face region, comprising: means for determining for each pixel whether the pixel's color is within a predetermined set of colors; means for determining the pixel to be part of the face region if it is determined that the pixel's color is within the predetermined set of colors; and means for determining a surface fitting for the image, wherein the surface fitting is determined using only the pixels that were determined to be part of the face region.
 27. A method for image normalization of an image that includes a plurality of pixels each having a gray level, comprising the steps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 28. The method of claim 27, further comprising: determining for each of the plurality of pixels whether the pixel is part of a face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 29. The method of claim 28, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel has a skin color.
 30. A system for image normalization of an image that includes a plurality of pixels each having a gray level, comprising: a memory; and a processor; wherein the memory stores a program that is operative with a processor to perform a method comprising the steps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 31. The system of claim 30, wherein the method further comprises the steps of: determining for each of the plurality of pixels whether the pixel is part of a face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 32. The system of claim 31, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel is a color within the predetermined set of colors.
 33. A computer readable medium storing a program that is operative with a processor to perform a method for image normalization of an image that includes a plurality of pixels each having a gray level, comprising the steps of: computing an average gray level for the plurality of pixels in the image; computing a standard deviation of the gray level for the plurality of pixels in the image; and transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation.
 34. The computer readable medium of claim 33, wherein the method further comprises the step of: determining for each of the plurality of pixels whether the pixel is part of a face region in the image; wherein in the step of computing the average gray level for the plurality of pixels, only the pixels that are determined to be part of the face region are used in computing the average gray level; and wherein in the step of computing the standard deviation, only the pixels that are determined to be part of the face region are used in computing the standard deviation.
 35. The computer readable medium of claim 34, wherein the step of determining whether a pixel is part of the face region includes determining whether the pixel's color is within a predetermined set of colors.
 36. A system for image normalization of an image that includes a plurality of pixels each having a gray level, comprising: means for computing an average gray level for the plurality of pixels in the image; means for computing a standard deviation of the gray level for the plurality of pixels in the image; and means for transforming the gray level for each pixel of the plurality of pixels to a gray level between a predetermined range using the computed average gray level and the computed standard deviation. 